 <#include "header.ftl">

        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
        
         <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> ${(main.name)!}<small>${(main.type)!}</small></div>
                        <p class="page-header-description">${(main.description)!}</p>
                    </div>
                    <div class="am-u-lg-3 tpl-index-settings-button">
                        <button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>
                    </div>
                </div>

            </div>
        
            <div class="row-content am-cf">
                <div class="row  am-cf">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-4">
                        <div class="widget  am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">患者总数</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">
                                <div class="am-fl">
                                    <div class="widget-fluctuation-period-text">
                                        	${patient.patient_total}
                                        
                                    </div>
                                </div>
                                <div class="am-fr am-cf">
                                    <div class="widget-fluctuation-description-amount text-success" am-cf>
                                        +${patient.patient_month}<span class="widget-fluctuation-description-text am-fr">最近一月</span>
											
                                    </div>
                                   
                                    <button class="widget-fluctuation-tpl-btn">
                        <i class="am-icon-calendar"></i>
                                                             更多月份
                      </button>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-4">
                        <div class="widget widget-primary am-cf">
                            
                            <div class="widget-statistic-body">
                                
                                 <div class="am-u-sm-6">
                                 <div id="tngou-echarts-sex" style="height:120px;" class="am-g"></div>
                                 <script type="text/javascript">
							        var sexpie = echarts.init(document.getElementById('tngou-echarts-sex'));
							          sexpie.showLoading();
							          $.get('${Domain}api/echarts/sexpie').done(function (data) {
							              sexpie.hideLoading();
							              sexpie.setOption(data.option);
							          });
    							</script>
                                 </div>
                                <div class="am-u-sm-6">
                                 <div class="widget-statistic-header">
		                                                                    性别比例
		                            </div>
		                            <div class="am-progress-title">男性 <span class="am-fr am-progress-title-more">${patient.patient_male} / ${patient.patient_total}</span></div>
                                
                                    <div class="am-progress-title">女性 <span class="am-fr am-progress-title-more">${patient.patient_female} / ${patient.patient_total}</span></div>
                                
                                
                                 </div>
                                
                            </div>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-4">
                        <div class="widget widget-purple am-cf">
                            <div class="widget-statistic-header">
                                成员用户
                            </div>
                            <div class="widget-statistic-body">
                                <div class="widget-statistic-value">
                                    ${prole.role0+prole.role4+prole.role5+prole.role6}
                                </div>
                                <div class="widget-statistic-description">
                                                                              用户 <strong>${prole.role0}</strong>
                          <#if user.role==1||user.role==2>
                                                                               运维 <strong>${prole.role2}</strong>
                          </#if>
                                                                                技术 <strong>${prole.role3}</strong>                     
                                                                               主任 <strong>${prole.role4}</strong>
                                                                                 医生 <strong>${prole.role5}</strong>
                                                                                   护士 <strong>${prole.role6}</strong> 
                                </div>
                                <span class="widget-statistic-icon am-icon-user"></span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row am-cf">
                    <div class="am-u-sm-12 am-u-md-9">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">疾病治疗TOP10</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body-md widget-body tpl-amendment-echarts am-fr" id="tpl-echarts">
							<div id="tngou-echarts-cure" style="height:200px;" class="am-g"></div>
                                 <script type="text/javascript">
							        var curebar = echarts.init(document.getElementById('tngou-echarts-cure'));
							          curebar.showLoading();
							          $.get('${Domain}api/echarts/curebar').done(function (data) {
							              curebar.hideLoading();
							              curebar.setOption(data.option);
							          });
    							</script>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12 am-u-md-3">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">治疗情况</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body widget-body-md am-fr">

                                <div class="am-progress-title">总数 <span class="am-fr am-progress-title-more">${cure.cure_total}</span></div>
                               
                                <div class="am-progress-title">月治疗 <span class="am-fr am-progress-title-more">${cure.cure_month}</span></div>
                               
                                <div class="am-progress-title">发病位置 <span class="am-fr am-progress-title-more">${cure.cure_place}</span></div>
                               
                                <div class="am-progress-title">相关科室 <span class="am-fr am-progress-title-more">${cure.cure_department}</span></div>
                               
                                <div class="am-progress-title">治疗方式 <span class="am-fr am-progress-title-more">${cure.cure_treatment}</span></div>
                               
                            </div>
                        </div>
                    </div>
                </div>


                <div class="row am-cf">
                    <div class="am-u-sm-12 am-u-md-3">
                        <div class="widget am-cf widget-body-lg">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">随访情况</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body widget-body-md am-fr">

                                <div class="am-progress-title">完成随访 <span class="am-fr am-progress-title-more">${access.access_state2} / ${access.access_total}</span></div>
                                <div class="am-progress">
                                    <div class="am-progress-bar" style="width: ${access.access_state2*100/access.access_total}%"></div>
                                </div>
                                <div class="am-progress-title">随访进行 <span class="am-fr am-progress-title-more">${access.access_state0+access.access_state1} / ${access.access_total}</span></div>
                                <div class="am-progress">
                                    <div class="am-progress-bar  am-progress-bar-warning" style="width: ${(access.access_state0+access.access_state1)*100/access.access_total}%"></div>
                                </div>
                                <div class="am-progress-title">失效随访 <span class="am-fr am-progress-title-more">${access.access_state3} / ${access.access_total}</span></div>
                                <div class="am-progress">
                                    <div class="am-progress-bar am-progress-bar-danger" style="width: ${access.access_state3*100/access.access_total}%"></div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9 widget-margin-bottom-lg">

                        <div class="widget am-cf widget-body-lg">
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">随访情况</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body  am-fr">
                                <div id="tngou-echarts-access" style="height:200px;" class="am-g"></div>
                                 <script type="text/javascript">
							        var accessline = echarts.init(document.getElementById('tngou-echarts-access'));
							          accessline.showLoading();
							          $.get('${Domain}api/echarts/accessline').done(function (data) {
							              accessline.hideLoading();
							              accessline.setOption(data.option);
							          });
    							</script>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        
     <script src="${Domain}common/amazeui/js/echarts.min.js"></script>
    <script src="${Domain}common/amazeui/js/amazeui.datatables.min.js"></script>
    <script src="${Domain}common/amazeui/js/dataTables.responsive.min.js"></script>
        
 <#include "footer.ftl">
   